package com.example.eureka_user.Controller;

import com.example.eureka_user.dao.wechat.UserInfDao;
import com.example.eureka_user.model.UserInf;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

@RestController
public class UserController {
    @Autowired
    private UserInfDao userInfDao;

    @RequestMapping("/user/getById")
    @ResponseBody
    public Object getUserById(String id){
        UserInf userInf = userInfDao.selectById(id);
        return userInf;
    }

}
